const mon = require('../connect');
const moment = require('moment')

let userSchema = new mon.Schema({
    username:{
        type:String,
        required:true
    },
    pwd:{
        type:String,
        required:true
    },
    createtime:{
        type:String,
        // 2023-05-29 09:12:32
        default:()=>moment().format('YYYY-MM-DD HH:mm:ss')
    },
})

let userModel = mon.model('noteusers',userSchema);

module.exports = userModel;